package server.business.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import server.business.pojo.BloodDispenseVo;
import server.business.pojo.BloodTestVo;
import server.main.config.cache.MybatisPlusRedisCache;
import server.business.pojo.BloodDispense;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;


/**
* @author Galaxy
* @description 针对表【blood_dispense】的数据库操作Mapper
* @createDate 2022-11-08 12:46:23
* @Entity server.business.pojo.BloodDispense
*/
@Mapper
//@CacheNamespace(implementation = MybatisPlusRedisCache.class)
public interface BloodDispenseMapper extends BaseMapper<BloodDispense> {
    /**
     * 配血分页查询
     * @param page
     * @param queryWrapper
     * @return
     */
    Page<BloodDispenseVo> selectBloodDispenseByPage(Page<BloodDispenseVo> page,
                                             @Param(Constants.WRAPPER) QueryWrapper<BloodDispenseVo> queryWrapper);

    /**
     * excel
     * @param
     * @param queryWrapper
     * @return
     */
    List<BloodDispenseVo> selectBloodDispenseExcel(@Param(Constants.WRAPPER) QueryWrapper<BloodDispenseVo> queryWrapper);
}




